<?php

class Application_Model_DbTable_Express extends Application_Model_DbTable_DomainObject{
    
    protected $_name = 'uuch_express';
    
    public function getMapper() {
        return array('id','name','firstWeight','subsequentWeight','fuelSurcharge','isVolume','typeMark','description','remark','isDisable','logo','reportFee'
            ,'unitWeight','isSpecific','orderBy','isInvoice','maxWeight','webUrl','trackUrl','trackType','helpUrl','trackNo','isRemoteFee', 'remoteFee', 'othersFee','code', 'es_time');
    }

    /*
    * 获取vip列表
    */
    public function getVip(){
        $db = $this->getAdapter();
        $sql="SELECT DISTINCT(expressId) FROM `uuch_expressVip`";
        $result = $db->query($sql);
        $items = array();
        if (count($result) > 0) {
            foreach ($result as $row) {
                $items[] = $row['expressId'];
            }
        }
        return $items;
    }
}